package com.yuexunit.finance.member.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author wenwenlong
 */
@Entity
@Table(name = "FIN_TEMPORARY_CREDITLINE")
public class TemporaryCreditLineEntity {

	/** 企业信息ID */
	@Id
	@Column(name = "ENTERPRISE_ID")
	private Long enterpriseId;

	/** 临时额度评估等级ID */
	@Column(name = "TEMPORARY_CREDITLINE_EVALUATION_ID")
	private Long temporaryCreditlineEvaluationId;

	/** 临时额度 */
	@Column(name = "TEMPORARY_CREDITLINE")
	private BigDecimal temporaryCreditline;
	
	/** 已用额度 */
	@Column(name = "TEMPORARY_CREDITLINE_ALREADY")
	private BigDecimal temporaryCreditlineAlready;

	/** 有效起始时间(含) */
	@Column(name = "EFFECTIVE_START_D8")
	private Integer effectiveStartDate;

	/** 有效截止时间(含) */
	@Column(name = "EFFECTIVE_END_D8")
	private Integer effectiveEndDate;

	/** 是否有效 */
	@Column(name = "EFFECTIVE")
	private Boolean effective;

	public Long getEnterpriseId() {
		return enterpriseId;
	}

	public void setEnterpriseId(Long enterpriseId) {
		this.enterpriseId = enterpriseId;
	}

	public Long getTemporaryCreditlineEvaluationId() {
		return temporaryCreditlineEvaluationId;
	}

	public void setTemporaryCreditlineEvaluationId(Long temporaryCreditlineEvaluationId) {
		this.temporaryCreditlineEvaluationId = temporaryCreditlineEvaluationId;
	}

	public BigDecimal getTemporaryCreditline() {
		return temporaryCreditline;
	}

	public void setTemporaryCreditline(BigDecimal temporaryCreditline) {
		this.temporaryCreditline = temporaryCreditline;
	}

	public BigDecimal getTemporaryCreditlineAlready() {
		return temporaryCreditlineAlready;
	}

	public void setTemporaryCreditlineAlready(BigDecimal temporaryCreditlineAlready) {
		this.temporaryCreditlineAlready = temporaryCreditlineAlready;
	}

	public Integer getEffectiveStartDate() {
		return effectiveStartDate;
	}

	public void setEffectiveStartDate(Integer effectiveStartDate) {
		this.effectiveStartDate = effectiveStartDate;
	}

	public Integer getEffectiveEndDate() {
		return effectiveEndDate;
	}

	public void setEffectiveEndDate(Integer effectiveEndDate) {
		this.effectiveEndDate = effectiveEndDate;
	}

	public Boolean getEffective() {
		return effective;
	}

	public void setEffective(Boolean effective) {
		this.effective = effective;
	}
}
